// 封装存储token或者其他数据类型方法

/* 存 */
export const setData = (key, value) => {
  return window.localStorage.setItem(key, JSON.stringify(value))
}
/* 取 */
export const getData = (key) => {
  return window.localStorage.getItem(key)
}
/* 删 */
export const delData = (key) => {
  return window.localStorage.removeItem(key)
}
